---
keywords: ""
title: ">"
root: "/v5.1"
layout: "default"
description: "Swift documentation for '>'"
---

<div class="intro-declaration"><code class="language-swift">func >(lhs:rhs:)(lhs: (), rhs: ()) -> Bool</code></div><div class="discussion comment"><p>Returns a Boolean value indicating whether the first tuple is ordered
after the second in a lexicographical ordering.
</p>
<p>An arity zero tuple is never strictly after another arity zero tuple in a
lexicographical ordering.</p>
</div><div class="intro-declaration"><code class="language-swift">func >(lhs:rhs:)(lhs: (A, B), rhs: (A, B)) -> Bool</code></div><div class="discussion comment"><p>Returns a Boolean value indicating whether the first tuple is ordered
after the second in a lexicographical ordering.
</p>
<p>Given two tuples <code>(a1, a2, ..., aN)</code> and <code>(b1, b2, ..., bN)</code>, the first
tuple is after the second tuple if and only if
<code>a1 &gt; b1</code> or (<code>a1 == b1</code> and
<code>(a2, ..., aN) &gt; (b2, ..., bN)</code>).</p>
</div><div class="intro-declaration"><code class="language-swift">func >(lhs:rhs:)(lhs: (A, B, C), rhs: (A, B, C)) -> Bool</code></div><div class="discussion comment"><p>Returns a Boolean value indicating whether the first tuple is ordered
after the second in a lexicographical ordering.
</p>
<p>Given two tuples <code>(a1, a2, ..., aN)</code> and <code>(b1, b2, ..., bN)</code>, the first
tuple is after the second tuple if and only if
<code>a1 &gt; b1</code> or (<code>a1 == b1</code> and
<code>(a2, ..., aN) &gt; (b2, ..., bN)</code>).</p>
</div><div class="intro-declaration"><code class="language-swift">func >(lhs:rhs:)(lhs: (A, B, C, D), rhs: (A, B, C, D)) -> Bool</code></div><div class="discussion comment"><p>Returns a Boolean value indicating whether the first tuple is ordered
after the second in a lexicographical ordering.
</p>
<p>Given two tuples <code>(a1, a2, ..., aN)</code> and <code>(b1, b2, ..., bN)</code>, the first
tuple is after the second tuple if and only if
<code>a1 &gt; b1</code> or (<code>a1 == b1</code> and
<code>(a2, ..., aN) &gt; (b2, ..., bN)</code>).</p>
</div><div class="intro-declaration"><code class="language-swift">func >(lhs:rhs:)(lhs: (A, B, C, D, E), rhs: (A, B, C, D, E)) -> Bool</code></div><div class="discussion comment"><p>Returns a Boolean value indicating whether the first tuple is ordered
after the second in a lexicographical ordering.
</p>
<p>Given two tuples <code>(a1, a2, ..., aN)</code> and <code>(b1, b2, ..., bN)</code>, the first
tuple is after the second tuple if and only if
<code>a1 &gt; b1</code> or (<code>a1 == b1</code> and
<code>(a2, ..., aN) &gt; (b2, ..., bN)</code>).</p>
</div><div class="intro-declaration"><code class="language-swift">func >(lhs:rhs:)(lhs: (A, B, C, D, E, F), rhs: (A, B, C, D, E, F)) -> Bool</code></div><div class="discussion comment"><p>Returns a Boolean value indicating whether the first tuple is ordered
after the second in a lexicographical ordering.
</p>
<p>Given two tuples <code>(a1, a2, ..., aN)</code> and <code>(b1, b2, ..., bN)</code>, the first
tuple is after the second tuple if and only if
<code>a1 &gt; b1</code> or (<code>a1 == b1</code> and
<code>(a2, ..., aN) &gt; (b2, ..., bN)</code>).</p>
</div><div class="intro-declaration"><code class="language-swift">func >(lhs:rhs:)(lhs: (), rhs: ()) -> Bool</code></div><div class="discussion comment"><p>Returns a Boolean value indicating whether the first tuple is ordered
after the second in a lexicographical ordering.
</p>
<p>An arity zero tuple is never strictly after another arity zero tuple in a
lexicographical ordering.</p>
</div><div class="intro-declaration"><code class="language-swift">func >(lhs:rhs:)(lhs: (A, B), rhs: (A, B)) -> Bool</code></div><div class="discussion comment"><p>Returns a Boolean value indicating whether the first tuple is ordered
after the second in a lexicographical ordering.
</p>
<p>Given two tuples <code>(a1, a2, ..., aN)</code> and <code>(b1, b2, ..., bN)</code>, the first
tuple is after the second tuple if and only if
<code>a1 &gt; b1</code> or (<code>a1 == b1</code> and
<code>(a2, ..., aN) &gt; (b2, ..., bN)</code>).</p>
</div><div class="intro-declaration"><code class="language-swift">func >(lhs:rhs:)(lhs: (A, B, C), rhs: (A, B, C)) -> Bool</code></div><div class="discussion comment"><p>Returns a Boolean value indicating whether the first tuple is ordered
after the second in a lexicographical ordering.
</p>
<p>Given two tuples <code>(a1, a2, ..., aN)</code> and <code>(b1, b2, ..., bN)</code>, the first
tuple is after the second tuple if and only if
<code>a1 &gt; b1</code> or (<code>a1 == b1</code> and
<code>(a2, ..., aN) &gt; (b2, ..., bN)</code>).</p>
</div><div class="intro-declaration"><code class="language-swift">func >(lhs:rhs:)(lhs: (A, B, C, D), rhs: (A, B, C, D)) -> Bool</code></div><div class="discussion comment"><p>Returns a Boolean value indicating whether the first tuple is ordered
after the second in a lexicographical ordering.
</p>
<p>Given two tuples <code>(a1, a2, ..., aN)</code> and <code>(b1, b2, ..., bN)</code>, the first
tuple is after the second tuple if and only if
<code>a1 &gt; b1</code> or (<code>a1 == b1</code> and
<code>(a2, ..., aN) &gt; (b2, ..., bN)</code>).</p>
</div><div class="intro-declaration"><code class="language-swift">func >(lhs:rhs:)(lhs: (A, B, C, D, E), rhs: (A, B, C, D, E)) -> Bool</code></div><div class="discussion comment"><p>Returns a Boolean value indicating whether the first tuple is ordered
after the second in a lexicographical ordering.
</p>
<p>Given two tuples <code>(a1, a2, ..., aN)</code> and <code>(b1, b2, ..., bN)</code>, the first
tuple is after the second tuple if and only if
<code>a1 &gt; b1</code> or (<code>a1 == b1</code> and
<code>(a2, ..., aN) &gt; (b2, ..., bN)</code>).</p>
</div><div class="intro-declaration"><code class="language-swift">func >(lhs:rhs:)(lhs: (A, B, C, D, E, F), rhs: (A, B, C, D, E, F)) -> Bool</code></div><div class="discussion comment"><p>Returns a Boolean value indicating whether the first tuple is ordered
after the second in a lexicographical ordering.
</p>
<p>Given two tuples <code>(a1, a2, ..., aN)</code> and <code>(b1, b2, ..., bN)</code>, the first
tuple is after the second tuple if and only if
<code>a1 &gt; b1</code> or (<code>a1 == b1</code> and
<code>(a2, ..., aN) &gt; (b2, ..., bN)</code>).</p>
</div>